import request from '@/utils/request'

export default {
    // 条件查询分页
    pageQuestionCondition(current, limit, questionQuery) {
        return request({
          url: `/admin/forumservice/question/pageQuestionCondition/${current}/${limit}`,
          method: 'post',
          data : questionQuery
        })
    },

    deleteQuestionById(id) {
        return request({
            url: `/admin/forumservice/question/deleteQuestionById/${id}`,
            method: 'delete',
        })
    },

    // 条件查询分页
    pageCommentCondition(current, limit, commentQuery) {
        return request({
          url: `/admin/forumservice/comment/pageCommentCondition/${current}/${limit}`,
          method: 'post',
          data : commentQuery
        })
    },

    deleteCommentById(id) {
        return request({
            url: `/admin/forumservice/comment/deleteCommentById/${id}`,
            method: 'delete',
        })
    },

}
